import configparser
import os

cur_path = os.path.dirname(os.path.realpath(__file__))
account_path = os.path.join(cur_path, "account.ini")
account_cfg = configparser.ConfigParser()
account_cfg.read(account_path)

ADMIN_ACCOUNT = account_cfg.get("ihrm_admin_account", "admin_account")
ADMIN_PWD = account_cfg.get("ihrm_admin_account", "admin_pwd")

# 当前项目工程路径
BASE_DIR = os.path.dirname(os.path.dirname(__file__))

# iHRM域名
IHRM_URL = 'http://ihrm-test.itheima.net'

# 登录
LOGIN_URL = '/api/sys/login'

# 员工管理模块
EMP_URL = '/api/sys/user'

if __name__ == '__main__':
    print(ADMIN_ACCOUNT,ADMIN_PWD)
